package com.Al.pattern.singleton;

/**
 * @Author lizhigang Date: 2019/4/17 22:20
 * @description:饿汉式静态代码块模式
 */
public class HungryStaticSingleton {
	private static final HungryStaticSingleton HUNGRY_SINGLETON;

	static {
		HUNGRY_SINGLETON = new HungryStaticSingleton();
	}

	private HungryStaticSingleton(){};

	public HungryStaticSingleton newInstence(){
		return HUNGRY_SINGLETON;
	}

}
